Function Reference

_GUICtrlComboSetExtendedUI

Select either the default user interface or the extended user interface

#Include <GuiCombo.au3>
_GUICtrlComboSetExtendedUI($h_combobox, $i_bool)

 

Parameters

$h_combobox control id/control hWnd
$i_bool Specifies whether the combo box uses the extended user interface or the default user interface

 

Return Value

Success: Returns $CB_OKAY.
Failure: Returns $CB_ERR if an error occurs.

 

Remarks

By default, the F4 key opens or closes the list and the
DOWN ARROW changes the current selection. In the extended
user interface, the F4 key is disabled and the DOWN ARROW
key opens the drop-down list

$i_bool specifies whether the combo box uses the extended
user interface or the default user interface.

A value of TRUE selects the extended user interface

A value of FALSE selects the standard user interface

 

Related

_GUICtrlComboGetExtendedUI

 

Example


#include <GuiConstants.au3>
#include <GuiCombo.au3>

Opt('MustDeclareVars',1)

Dim $Combo,$Btn_Exit,$Status,$msg,$Btn_Standard,$Btn_Extended,$state,$current

GuiCreate("ComboBox Set Extended UI", 392, 254)

$Combo = GuiCtrlCreateCombo("", 70, 10, 270, 120)
GUICtrlSetData($Combo,"AutoIt|v3|is|freeware|BASIC-like|scripting|language")
$Btn_Standard = GuiCtrlCreateButton("Standard", 75, 90, 90, 30)
$Btn_Extended = GuiCtrlCreateButton("Extended", 200, 90, 90, 30)
$Btn_Exit = GuiCtrlCreateButton("Exit", 150, 180, 90, 30)
$Status = GUICtrlCreateLabel("",0,234,392,20,BitOR($SS_SUNKEN,$SS_CENTER))
$current = Not $state
GuiSetState()
While 1
    $msg = GuiGetMsg()
    Select
        Case $msg = $GUI_EVENT_CLOSE Or $msg = $Btn_Exit
            ExitLoop
        Case $msg = $Btn_Standard
            _GUICtrlComboSetExtendedUI($Combo, 0)
        Case $msg = $Btn_Extended
            _GUICtrlComboSetExtendedUI($Combo, 1)
        Case Else
            $state = _GUICtrlComboGetExtendedUI($Combo)
            If($state And $state <> $current) Then
                $current = $state
                GUICtrlSetData($Status,"Extend UI: True")
            ElseIf($state <> $current) Then
                $current = $state
                GUICtrlSetData($Status,"Extend UI: False")
            EndIf
    EndSelect
WEnd
Exit